Skip to content

Conversation

@kertechs
Copy link

Hi, Thank you for this challenge

I didn't code for a long time and wanted to get back at it , more especially by diving into symfony
It really helped me to go from theory to a bit more practical with Symfony

I'd love to have some feedback if you got some time ...

Best regards

Nassim

Removed Arena Entity as it will be a service not an Entity as per specifications
Migrated schema changes
Minor correction in KnightControllerTest (fipped arguments for signature consistency)
…f annotations. Since SF4.4 is now mature upgrading from 4.3 to 4.4 should not be a pb
Changed the class name and asjusted some types for class Human (now AbstractHuman) : class name shouldmatch filename
Added basic "CRUD" for Knights entity (add / fetch / fetchAll)
Added control on requests content type and datas
Added symfony serializer to handle easily json content
Had to change the wy we retrieve the request. In test env, the kernel is not booted the same , we don't get the headers in __construct => injecting Response in methods solves the problem
Adjusted controller and entities to match tests output expectations
Modified a test to match the Knights controller output for fetchAll (I prefer to keep the data node in the output structure)
Status : all Knights tests are passing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant